﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TBookAdd.aspx.cs" Inherits="CURE.Harmful.TBookAdd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <script type="text/javascript">
        $(document).ready(function () {
            SetR('<%=Result%>');
        });
        function changeR(a) {
            var ctype = a.value;
            if (ctype == "NG") {
                document.getElementById("Result").value = "NG";
            }
            else {
                document.getElementById("Result").value = "OK";
            }
        }
        //判定类型
        function SetR(a) {
            debugger;
            var options = document.getElementById('ResultS').options;
            for (var i = 0; i < options.length; i++) {
                if (options[i].value == a) {
                    options[i].selected = true;
                }
            }
        }
    </script>
    <title>无标题页</title>
    <style type="text/css">
        .icm_label {
            text-align: right;
        }

        .icm_txt {
            margin-bottom: 0px;
            left: 10px;        
        }

        .required {
            margin-bottom: 0px;
        }

        .sty_tr {
            height: 47px;
        }
    </style>
</head>
<body>
    <div class="pageContent">
        <form id="Form1" method="post" action="Handler/TBookHandler.ashx" class="pageForm required-validate"
            onsubmit="return validateCallback(this,dialogAjaxDone)">
            <input type="hidden" name="Action" value="<%=Action %>" id="Action" />
            <input type="hidden" name="HID" value="<%=HID %>" id="HID" />
            <input type="hidden" name="Page" value="<%=Page1 %>" id="Page" />
            <div class="pageFormContent">
                <table>
                    <tr>
                        <td colspan="8">
                            <label style="text-align: center; width: 1000px; height: 30px; font-size: 26px; margin-top: 5px;">技术判定书登记</label>
                        </td>
                    </tr>
                    <tr class="sty_tr">
                        <td>
                            <label class="icm_label" >编号:</label></td>
                        <td>                           
                            <input id="Id" name="Id" class="required" type="text" readonly="readonly"  value="<%=Id %>" />
                        </td>
                        <td>
                            <label class="icm_label">F卡号:</label></td>
                        <td colspan="3">
                            
                            <input id="FID" name="FID" class="required" type="text" style="width: 350px;" readonly="readonly"  value="<%=FID %>" />
                        </td>
                    </tr>
                    <tr class="sty_tr">                      
                        <td>
                            <label class="icm_label" >受领担当:</label>
                        </td>
                        <td>
                            <input id="Saccepter" name="Saccepter" class="icm_txt" type="text" maxlength="30" value="<%=Saccepter %>" />
                        </td>
                        <td>
                            <label class="icm_label">受领日:</label>
                        </td>
                        <td>
                            <input id="AcceptDate" name="AcceptDate" class="date" type="text" datefmt="yyyy-MM-dd" maxlength="30" value="<%=AcceptDate %>" />
                        </td>
                        <td>
                            <label class="icm_label">期别:</label>
                        </td>
                        <td>
                            <input id="Stage" name="Stage" class="icm_txt" type="text" maxlength="30" value="<%=Stage %>" />
                        </td>
                        <td>
                            <label class="icm_label">型号:</label></td>
                        <td>
                            <input id="Model" name="Model" class="icm_txt" type="text"  maxlength="30" value="<%=Model %>" />
                        </td>
                    </tr>
                    <tr class="sty_tr">                       
                        <td>
                            <label class="icm_label" >类别:</label>
                        </td>
                        <td>
                            <input id="Category" name="Category" class="icm_txt" type="text"  maxlength="30" value="<%=Category %>" />
                        </td>
                        <td>
                            <label class="icm_label">F卡时间:</label>
                        </td>
                        <td>
                            <input id="Fdate" name="Fdate" class="date" type="text" datefmt="yyyy-MM-dd" maxlength="30" value="<%=Fdate %>" />
                        </td>
                        <td>
                            <label class="icm_label">数量(BT或包):</label>
                        </td>
                        <td>
                            <input id="Amount" name="Amount" class="icm_txt" type="text"  maxlength="30" value="<%=Amount %>" />
                        </td>
                        <td>
                            <label class="icm_label">技术课判定担当:</label></td>
                        <td>
                            <input id="Jaccepter" name="Jaccepter" class="icm_txt" type="text"  maxlength="30" value="<%=Jaccepter %>" />
                        </td>
                    </tr>
                    <tr class="sty_tr">                  
                        <td>
                            <label class="icm_label" >判定担当受领日期:</label>
                        </td>
                        <td>
                            <input id="Sdate" name="Sdate" class="date" type="text" datefmt="yyyy-MM-dd" maxlength="30" value="<%=Sdate %>" />
                        </td>
                        <td>
                            <label class="icm_label">处理方法:</label>
                        </td>
                        <td>
                            <input id="Method" name="Method" class="icm_txt" type="text"  maxlength="30" value="<%=Method %>" />
                        </td>
                        <td>
                            <label class="icm_label">再处理日限:</label>
                        </td>
                        <td>
                            <input id="MDate" name="MDate" class="date" type="text" datefmt="yyyy-MM-dd" maxlength="30" value="<%=MDate %>" />
                        </td>
                        <td>
                            <label class="icm_label">判定日:</label></td>
                        <td>
                            <input id="PDDate" name="PDDate" class="date" type="text" datefmt="yyyy-MM-dd" value="<%=PDDate %>" />
                        </td>
                    </tr>
                    <tr class="sty_tr">
                        <td>
                            <label class="icm_label" >决裁日期:</label>
                        </td>
                        <td>
                            <input id="JCDate" name="JCDate" class="date" type="text" datefmt="yyyy-MM-dd" maxlength="30" value="<%=JCDate %>" />
                        </td>
                        <td>
                            <label class="icm_label">返回申请部门日期:</label>
                        </td>
                        <td>
                            <input id="FHDate" name="FHDate" class="date" type="text" datefmt="yyyy-MM-dd" maxlength="30" value="<%=FHDate %>" />
                        </td>
                        <td>
                            <label class="icm_label">判定书处理完成返回:</label>
                        </td>
                        <td>
                            <input id="PDSDate" name="PDSDate" class="date" type="text" datefmt="yyyy-MM-dd" maxlength="30" value="<%=PDSDate %>" />
                        </td>
                        <td>
                            <label class="icm_label">返回日期:</label></td>
                        <td>
                            <input id="BackDate" name="BackDate" class="date"  datefmt="yyyy-MM-dd" style="" maxlength="30" value="<%=BackDate %>" />
                        </td>
                    </tr>
                    <tr class="sty_tr">
                        <td>
                            <label class="icm_label">记录人:</label></td>
                        <td>
                            <input id="Recorder" name="Recorder" class="icm_txt" type="text"  maxlength="30" readonly="readonly" value="<%=Recorder %>" />
                        </td>
                        <td>
                            <label class="icm_label">记录日期:</label></td>
                        <td>
                            <input id="RecordDate" name="RecordDate" class="icm_txt" type="text" maxlength="30" readonly="readonly" value="<%=RecordDate %>" />
                        </td>
                        <td>
                            <label class="icm_label" style="width: 80px; margin-left: 5px;">判定结果:</label>
                        </td>
                        <td>
                            <input  id="Result" name="Result" class="icm_txt" type="hidden" value="<%=Result %>" />
                            <select id="ResultS" style="" onchange="changeR(this)">
                                <option value="NG">NG</option>
                                <option value="OK">OK</option>
                            </select>
                        </td>
                    </tr>
                    <tr class="sty_tr">
                        <td>
                            <label class="icm_label" style="width: 80px; margin-left: 5px;">备注:</label></td>
                        <td colspan="7">
                            <input id="Remarks" name="Remarks" class="icm_txt" type="text" style="width: 990px;" value="<%=Remarks %>" />
                        </td>
                    </tr>
                    <tr class="sty_tr">
                        <td colspan="8">
                            <button id="button_save" type="submit" style="width: 50px; height: 25px; margin-left: 980px;" onclick="return confirm('一经保存,无法更改,确定保存吗？')">保存</button>
                            <button type="reset" style="width: 50px; height: 25px; margin-left: 30px;" class="close">取消</button>
                        </td>
                    </tr>
                </table>
            </div>
            
        </form>
    </div>
</body>
</html>
